<div id="content">
    <?php
    include("./PDO/PdoLieu.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Lieu.php"); //On inclut les fonctions PDO (create / update etc...)

    $lieu = new PdoLieu();
    $lieu = $lieu->readAll();
    ?>
    <form id="validate_form" action="index.php?route=reunion&action=traitement_ajout" method="post">


        <label>Nom</label>
        <input name="NOMREUNION" id="NomReunion" class="validate[required]"/><span id="mess_exist"></span>
        <br/>
        <label>Date</label>

        <input name="DATEREUNION" id="DateReunion" class="validate[required]"/><span id="mess_exist"></span>
        <label>Lieu</label>
        <select name="IDLIEU" size="1">
            <?php
            foreach ($lieu as $unlieu) {
                echo '<option value="' . $unlieu["IDLIEU"] . '">' . $unlieu["NOMLIEU"] . " " . $unlieu["CODEPOSTALIEU"] . '</option>';
            }
            ?>
        </select>  <br/>


        <input type="submit" id="valider" />
    </form></div>
